package net.sf.calibur.monitor;

import net.sf.calibur.engine.Event;

public class FileRenamedEvent extends Event {
	private String rootPath;
	private String oldName;
	private String newName;

	public FileRenamedEvent(String path, String oldName, String newName) {
		this.rootPath = path;
		this.oldName = oldName;
		this.newName = newName;
	}

	public String getRootPath() {
		return rootPath;
	}

	public String getOldName() {
		return oldName;
	}

	public String getNewName() {
		return newName;
	}

	@Override
	public String toString() {
		return new StringBuffer().append(getClass().getSimpleName())
				.append(" rootPath=").append(rootPath).append(" oldName=")
				.append(oldName).append(" newName=").append(newName).toString();
	}
}
